package com.ynet.middleground.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ynet.middleground.user.bean.QuerySMSLogNoPageReq;
import com.ynet.middleground.user.bean.QuerySMSLogReq;
import com.ynet.middleground.user.dto.QuerySMSLogDto;
import com.ynet.middleground.user.dto.SMSLogStatisticDto;
import com.ynet.middleground.user.entity.SmsLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 短信记录信息 Mapper 接口
 * </p>
 *
 * @author liulx
 * @since 2022-12-21
 */
public interface SmsLogMapper extends BaseMapper<SmsLog> {
    IPage<QuerySMSLogDto> querySMSLogStatistic(Page<QuerySMSLogDto> page, @Param("req") QuerySMSLogReq requestObject);
    List<QuerySMSLogDto> querySMSLogStatisticNoPage(@Param("req") QuerySMSLogNoPageReq requestObject);
    SMSLogStatisticDto querySMSLogStatisticTotal(@Param("req") QuerySMSLogNoPageReq requestObject);
}
